<?php
namespace Lib\System;

class System {
	public function __call($sName, $aParam) {
		$sType = 'Filesys';
		require_once __DIR__ . '/' . $sType . '.class.php';
		$sClass = __NAMESPACE__ . '\\' . $sType;
		$oClass = new $sClass ();
		return call_user_func_array ( array (
				$oClass,
				$sName 
		), $aParam );
	}
	
	public function __get($sName) {
		if (! $this->$sName) {
			$this->init ();
		}
		return $this->$sName;
	}
	
	public function __set($sName, $sValue) {
		$this->$sName = $sValue;
	}
}

?>